<%-- 
    Document   : doGetCandidati
    Created on : 17-mag-2014, 17.52.09
    Author     : Albo
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.DriverManager"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="it.polimi.Mir_1.paw.DBconnect"%>


<%
    String programmaPartito =request.getParameter("partito");
   
          DBconnect connAlbo = new DBconnect();
       // CONNESSIONE AL DATABASE
       Connection conn = connAlbo.getConnection();
       
      
       
      
       if (programmaPartito != null){
           String programma =connAlbo.getProgrammaPartito(programmaPartito,conn);
      out.print("{\"dati\":");
        out.print(programma);
       out.print("}");
       }
       
            conn.close();
%>